﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DevExpress.Xpo;
using DevExpress.Xpo.DB;

namespace CSY
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            DevExpress.Skins.SkinManager.EnableFormSkins();

            string strConnection = SQLiteConnectionProvider.GetConnectionString("c:\\aa.db");
            XpoDefault.DataLayer = XpoDefault.GetDataLayer(strConnection, 
                AutoCreateOption.DatabaseAndSchema);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Globals.ribbbonmenu = new ribbonMenu();
            loginForm login = new loginForm();
            login.ShowDialog();

            Application.Run(Globals.ribbbonmenu);
        }
    }
}
